
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type='text/css' href='../Resource/css/homestyles.css' rel='stylesheet' />
<link rel="stylesheet" type="text/css" href="../Resource/css/sidebar.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type='text/javascript' src='../Resource/js/fixed.js'></script>
<script type='text/javascript' src='../Resource/js/dialog.js'></script>
<script type='text/javascript' src='../Resource/js/jquery.simplemodal.js'></script>
<script type='text/javascript' src='../Resource/js/ui.core.js'></script>
<script type="text/javascript" src="../Resource/js/query-1.2.1.min.js"></script>



<script src="../Resource/js/sidebar.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>

<SCRIPT TYPE="text/javascript">
<!--
function popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
   href=mylink;
else
   href=mylink.href;
window.open(href, windowname, 'width=840,height=660,channelmode=yes,scrollbars=yes');
return false;
}
//-->
</SCRIPT>
	


	<!--[if lt IE 8]>
   	<style type="text/css">
   			li a {display:inline-block;}
   			li a {display:block;}
   		</style>
   	<![endif]-->
</head>

<body>

<div class="container">
	
	
	<?php include("sidebar.php");?>

	<div id="content">
	
	<?php include 'header.php';?>
    <div id="wrapper">
    <?php 
    		if(isset($_GET['cate'])){
    			//echo "OK";
    		$result = $DB->getlistproductwithcate($_GET['cate']);
    		if(@mysql_num_rows($result) >0){
    		while($row = mysql_fetch_array($result)){
    					
    ?>
    
			    
			    		<!--  START DIV APP-->
								<div class="app">
									<a href="Detail.php?ID=<?php echo $row['ID']; ?>" title="Uniform Tire Quality Grade" onClick="return popup(this,'cmwindow')">
										<img src="../support/getavatar.php?ID=<?php echo $row['STT']; ?>" alt="angri birds" /></a>
									
									<div class="info">
									
											<div class="title"><?php echo $row['TEN_UNG_DUNG']; ?></div>
											
											<div class="subtitle">4444 Lượt tải về</div>
											<div class="install"> <a href="#"><img src="../Resource/images/download.png"/></a></div>
									</div><!--  end .info -->
								</div> <!--  end .app -->
								<!--  END DIV APP-->
				
		<?php 
    			}
    		}
    		else{
    			echo "Chưa Có Sản Phẩm Nào Trong Danh Mục";
    		}
    	}
		?>
		</div>
	</div>
<div style="display: none;" id="example" title="My First Ajax Dialog"></div>
</body>
</html>
